package interview.juc.condition;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @Author: zhangrongqing
 * @Date: 2019/12/9 15:05
 */
public class ConditionTest {
    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();
        ProducerAndConsumerCondition condition = new ProducerAndConsumerCondition(lock);
        ProducerAndConsumerCondition.Consumer consumer = condition.new Consumer();
        consumer.start();
        ProducerAndConsumerCondition.Producer producer = condition.new Producer();
        producer.start();
    }
}

